package com.aracky.assess.mapper;

import com.aracky.assess.model.entity.HrKpiUserPerformanceDetail;
import com.aracky.assess.model.vo.SysDeptPostName;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 用户绩效考核明细 Mapper 接口
 * </p>
 *
 * @author zzp
 * @since 2022-08-01 09:48:11
 */
@Mapper
public interface HrKpiUserPerformanceDetailMapper extends BaseMapper<HrKpiUserPerformanceDetail> {
    /**
     * 根据postId获取部门名称和岗位名称
     * @param postId
     * @return
     */
    SysDeptPostName getDeptPostNameInfo(Long postId);

    /**
     * 获取时间满足员工id集合(员工入职时间满足早于启动考核月的15号)
     * @param suitableTime
     * @return
     */
    List<Long> getSuitableUserIds(@Param("suitableTime") LocalDate suitableTime);
}
